SGGetStorageSpaceRemaining
TheSGGetStorageSpaceRemaining
function allows you to monitor the amount of space remaining for use during a record operation. You can use this function to monitor the space being used so that you can limit the amount of space consumed by an operation. Alternatively, you can use the information you receive from this function to update a status display for the user.
pascal ComponentResult SGGetStorageSpaceRemaining (SeqGrabComponent s, unsigned long *bytes);
s
- Specifies the component instance that identifies your connection to the sequence grabber component. You obtain this value from the Component Manager's
OpenDefaultComponent
orOpenComponent
function.bytes
- Contains a pointer to a long integer that is to receive a value indicating the amount of space remaining for the current record operation. If you are recording to memory, this value contains information about the amount of memory remaining. If you are recording to a movie file, this value contains information about the amount of storage space available on the device that holds the file.
DESCRIPTION
TheSGGetStorageSpaceRemaining
function returns information that is appropriate for the output conditions you establish with theSGSetDataOutput
function, which is described on page 5-24. If you are recording to memory, this function returns information about the amount of memory remaining. If you are recording to a movie file, this function returns information about the amount of storage space available on the device that holds the file.You can call this function only after you have started a record operation.
RESULT CODE
seqGrabInfoNotAvailable -9407 Sequence grabber does not have this information at this time
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help